// JavaScript Document
//bind start
TOOLS.bind=function(scope){
	console.log('this')
	console.log(this)
	console.log('scope')
	console.log(scope)
    var fn = this;
    return function () {
        return fn.apply(scope);
    };
	
}

Function.prototype.__$bind$__ = function(){ 
//此句中的arguments指的是 __bind__函数的参数
  var fn = this, args = Array.prototype.slice.call(arguments), object = args.shift(); 
  return function(){ 
    return fn.apply(object, 
	/*此句中的arguments指的是 函数fn的参数*/
      args.concat(Array.prototype.slice.call(arguments))); 
  }; 
}
;
Function.prototype.__$basebind$__ = function(scope){ 
    var fn = this;
    return function () {
        return fn.apply(scope);
    };
}
;
Function.__$proto$__=Function.prototype.__$proto$__={
	
	__$proto$__:{},
	__a__:function(){},
	__b__:function(){},
	__c__:function(){}
	
	};
//Function.__$proto$__.__$proto$__=Function.prototype;
//bind end
//END0